from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf import settings
from django.contrib import admin
from django.views.generic import TemplateView
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'sistema_bomberos.views.home', name='home'),
    # url(r'^sistema_bomberos/', include('sistema_bomberos.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    #url(r'^admin/', include(admin.site.urls)),
    url(r'^$', 'bomberos.views.principal'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^login/$', 'bomberos.views.login'),
    url(r'^logout/$', 'bomberos.views.logout'),
    url(r'^bomberos/', include('bomberos.urls')),
    url(r'^contacto/$', TemplateView.as_view(template_name="proximamente.html")),

)+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

urlpatterns += staticfiles_urlpatterns()
